<!DOCTYPE html>
<!-- form with only valid elements -->
<html>
 <head>
   <style>
     form:invalid { display: none; }
   </style>
 </head>
 <body>
   <form>
    <input value='foo' required>
   </form>
 </body>
</html>
